package com.wondertek.poms.service.controller;

import com.wondertek.poms.common.log.MethodLog;
import com.wondertek.poms.common.vo.ResultBean;
import com.wondertek.poms.core.service.IPrdContService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@Api(value = "PrdContFuncController", description = "节目")
@RestController
@RequestMapping(value="/prd-cont")
public class PrdContFuncController {

    @Autowired
    private IPrdContService prdContService;

    /**
     * 一键叫审(央视)
     * @return 树结构
     */
    @ApiOperation(value = "产品和商品包树结构", notes = "产品和商品包树结构")
    @GetMapping("/emergency-bc")
    @MethodLog(module = "产品和商品包树结构")
    public ResultBean getPreviewList(String prdContIds,String contentIds,String level){
        return prdContService.emergencyBc( prdContIds, contentIds, level);
    }

}
